<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
 <%@ page import="java.util.*" %>
<%@page import="com.newblog.model.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<form action="post.do?act=deletePost" method="post">
<table width="2">
<tr><td><input type="checkbox"/></td><td>序号</td><td>标题</td><td>内容</td><td>作者</td></tr>
<c:forEach var="post" items="${posts}">
<tr><td><input type="checkbox" value="${post.id }" name="ids"/></td><td><input type="hidden" name="cid" value="${post.cid}"/> </td><td><a href='post.do?act=updatePost&id=${post.id}'>${post.title }</a></td><td>${post.content }</td><td>${post.bid }</td></tr>
</c:forEach>
</table>
<input type="submit" value="删除">
</form> 
</body>
</html>